package com.vegetable.modules.service.finance;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vegetable.common.annotation.SalesDataPermission;
import com.vegetable.modules.entity.finance.FinancialCollectionDetail;
import com.vegetable.modules.entity.finance.po.FinancialCollectionStatisticsPO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 财务收款管理明细表 服务类
 * </p>
 *
 * @author wangruijie
 * @since 2024-04-13
 */
public interface IFinancialCollectionDetailService extends IService<FinancialCollectionDetail> {


    List<FinancialCollectionDetail> findByOrderId(Long orderId);

    List<FinancialCollectionDetail> findByMainId(Long mainId);

    @SalesDataPermission(type = SalesDataPermission.PermissionType.CUSTOMER, filterParam = FinancialCollectionStatisticsPO.class)
    Map<String, Object> salesCollectionStatistics(FinancialCollectionStatisticsPO po);
}